package com.ruoyi.learn.java.data.structure;

import java.util.Collection;
import java.util.Collections;
import java.util.Deque;
import java.util.Stack;

public class DequeTest {

    public static void main(String[] args) {
        Stack stack = new Stack();
        Deque deque = new java.util.ArrayDeque();
        // 线程不安全利用同步工具类解决
        Collection collection = Collections.synchronizedCollection(deque);

    }
}
